﻿<Window x:Class="Brjnk.GpxExplorer.UI.QuestionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        WindowStartupLocation="CenterOwner"
        MinWidth="300" SizeToContent="WidthAndHeight">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <TextBlock Name="questionTxbl" Text="{Binding Text}" TextWrapping="Wrap" MinWidth="300" />

        <ItemsControl Grid.Row="1" Name="answersIc" ItemsSource="{Binding}">
            <ItemsControl.ItemContainerStyle>
                <Style>
                    <EventSetter Event="Button.Click" Handler="ButtonClicked" />
                </Style>
            </ItemsControl.ItemContainerStyle>
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <Button Content="{Binding Text}" />
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </Grid>
</Window>